DimenLogarithmicDp

EN Utility object for handling SDP (Scalable Dp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SDP (Scalable Dp) no Java.

Functions

Link copied to clipboard
fun getDimensionInDp(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic DP scaling function for Java. PT Função de escala DP genérica para Java.

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java. PT Função de escala genérica para Java.

Link copied to clipboard
fun loghdp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp). PT Resolução rápida para Altura da Tela (hdp).

Link copied to clipboard
fun loghdpa(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpi(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpia(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in landscape orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun loghdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with UiModeType override.

Link copied to clipboard
fun loghdpPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in portrait orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun loghdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun loghdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) conditional scaling.

Link copied to clipboard
fun loghdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with rotation override.

Link copied to clipboard
fun loghdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) context conditional scaling.

Link copied to clipboard
fun logsdp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp). PT Resolução rápida para Smallest Width (sdp).

Link copied to clipboard
fun logsdpa(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpa) with aspect ratio. PT Resolução rápida para Smallest Width (sdpa) com proporção de tela.

Link copied to clipboard
fun logsdpi(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpi) ignoring multi-windows. PT Resolução rápida para Smallest Width (sdpi) ignorando janelas múltiplas.

Link copied to clipboard
fun logsdpia(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpia) ignoring multi-windows and with aspect ratio. PT Resolução rápida para Smallest Width (sdpia) ignorando janelas múltiplas e com proporção.

Link copied to clipboard
fun logsdpLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Altura da Tela (hdp).

Link copied to clipboard
fun logsdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Largura da Tela (wdp).

Link copied to clipboard
fun logsdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with UiModeType override.

Link copied to clipboard
fun logsdpPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Altura da Tela (hdp).

Link copied to clipboard
fun logsdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Largura da Tela (wdp).

Link copied to clipboard
fun logsdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun logsdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) conditional scaling.

Link copied to clipboard
fun logsdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with rotation override.

Link copied to clipboard
fun logsdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) context conditional scaling.

Link copied to clipboard
fun logwdp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp). PT Resolução rápida para Largura da Tela (wdp).

Link copied to clipboard
fun logwdpa(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpi(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpia(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in landscape orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun logwdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with UiModeType override.

Link copied to clipboard
fun logwdpPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in portrait orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun logwdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun logwdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) conditional scaling.

Link copied to clipboard
fun logwdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with rotation override.

Link copied to clipboard
fun logwdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) context conditional scaling.

Link copied to clipboard
fun scaled(initialBaseValue: Float): DimenLogarithmic

EN Starts the build chain for the custom dimension DimenLogarithmic from a base Float.

fun scaled(initialBaseValue: Int): DimenLogarithmic

EN Starts the build chain for the custom dimension DimenLogarithmic from a base Int. PT Inicia a cadeia de construção para a dimensão customizada DimenLogarithmic a partir de um Int base.

Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.